define(function(require, exports, module) {
    var config;
    function initArticleImg() {
        $('.list-img img').each(function() {
            var obj = $(this);
            var src = obj.attr('data-src');
            if (!src) {
                return;
            }
            src = src.replace(/_800/, '_200');
            var img = new Image();
            img.onload = function() {
                obj.attr('src', src);
                var w = obj.width();
                var h = obj.height();
                if (w >= h) {
                    obj.css({'height': '100%'});
                } else {
                    obj.css({'width': '100%'});
                }
            }
            img.src = src;
        });
    }
    exports.init = function(c) {
        config = c;
        initArticleImg();
        require.async('./TopInfo', function(a) {
            a.init(c);
        });
    }
});